package com.platform.qujia.utils;

public class CodeMsg {
    private int retCode;
    private String message;
    // 按照模块定义CodeMsg
    // 通用异常
    public static CodeMsg SUCCESS = new CodeMsg(0,"success");
    public static CodeMsg SERVER_EXCEPTION = new CodeMsg(500100,"服务端异常");
    public static CodeMsg REPEATED_REQUEST = new CodeMsg(10500,"重复请求!");
    public static CodeMsg MISSING_PARAM= new CodeMsg(10501,"缺少参数!");


    public static CodeMsg USER_NOT_EXSIST = new CodeMsg(-1,"用户不存在");
    public static CodeMsg USER_NOT_EXSIST_TO_RELOAD = new CodeMsg(-5,"请重新登录");
    public static CodeMsg STATION_STOP_USING = new CodeMsg(-6,"该账户对应站点已停用");
    public static CodeMsg STATION_NOT_EXIST = new CodeMsg(-6,"该账户对应站点已删除或不存在");
    public static CodeMsg ALREADY_SCANCODE = new CodeMsg(-8,"该二维码已被扫用");
    public static CodeMsg Network_Exception= new CodeMsg(-7,"网络异常，请重新提交");
    public static CodeMsg SCAN_EMPLOYEE= new CodeMsg(-9,"请扫加油员码进入");


    public static CodeMsg USER_EXSIST_CARD = new CodeMsg(-1,"该用户暂无此卡");
    public static CodeMsg USER_NOT_STATUS = new CodeMsg(-3,"该用户已停用");

    public static CodeMsg USER_EXSIST = new CodeMsg(-1,"用户已存在");
    public static CodeMsg NO_ORDER = new CodeMsg(-2,"暂无此订单");
    public static CodeMsg NO_PAY_ORDER = new CodeMsg(-4,"暂无此订单或未支付");
    public static CodeMsg CASH_ORDER_CANCEL = new CodeMsg(-11,"现金订单取消");
    public static CodeMsg NOT_CASH_ORDER_TYPE = new CodeMsg(-12,"该现金订单已完成支付");
    public static CodeMsg STATION_ORDER_ID_FIT = new CodeMsg(-13,"该订单非该登录人所在油站");
    public static CodeMsg CANCEL_CASH_ORDER = new CodeMsg(-12,"该现金订单已取消");

    public static CodeMsg ENABLE_AUTOMATIC_SCHEDULING = new CodeMsg(-1,"该油站已开启自动班结");

    public static CodeMsg CHECKDZKREPEATPAY_FAIL = new CodeMsg(-1,"在一分钟内存在相同实付金额的订单");

    public static CodeMsg SELECT_ORDER_ERROR = new CodeMsg(-1,"此订单已完成支付，请重新下单");
    public static CodeMsg BALANCE_NOT_EENOUGH = new CodeMsg(-2,"电子卡余额不足");
    public static CodeMsg PASSWORD_ERROR = new CodeMsg(-2,"密码错误");
    public static CodeMsg ACCOUNT_DISABLE = new CodeMsg(-3,"该账号已被停用");
    public static CodeMsg USERNAME_LEVEL_ERROR = new CodeMsg(-7,"该账号非油站账号");
    public static CodeMsg NO_FollowGzh = new CodeMsg(-4,"未关注公众号");
    public static CodeMsg USERGZHINFO_EXSIST = new CodeMsg(-5,"系统暂无此用户公众号信息");
    public static CodeMsg CHECK_DATA_ERROR = new CodeMsg(-6,"数据不一致");
    public static CodeMsg SEARCH_FAIL = new CodeMsg(-1,"查询失败");
    public static CodeMsg INSERT_FAIL = new CodeMsg(001,"添加失败");
    public static CodeMsg SEARCH_APPID_FAIL = new CodeMsg(-1,"油企公众号配置不完善");
    public static CodeMsg DELETE_FAIL = new CodeMsg(003,"删除失败");
    public static CodeMsg UPDATE_FAIL = new CodeMsg(004,"修改失败");
    public static CodeMsg REQUEST_FAIL = new CodeMsg(-2,"必传参数不能为空");
    public static CodeMsg YEWU_FAIL = new CodeMsg(006,"业务失败");
    public static CodeMsg BAIDUMAP_FAIL = new CodeMsg(-2,"地理位置查询失败");
    public static CodeMsg NO_CARDENABLEFLAG = new CodeMsg(-2,"未启用电会员卡");
    public static CodeMsg ALREADY_PAY = new CodeMsg(-11,"该订单已支付完成");
    public static CodeMsg STATION_NULL_INFO = new CodeMsg(-2,"无此油站或该油站信息配置不完善");
    public static CodeMsg ENTERPRISE_NULL_INFO = new CodeMsg(-3,"无此油企或该油企信息配置不完善");
    public static CodeMsg CHECK_DATA = new CodeMsg(007,"与后台检验不一致，请联系……");
    public static CodeMsg PARAMS_NUll = new CodeMsg(-2,"请求失败，必传参数不能为空！");
    public static CodeMsg WARSECOUNT_FAIL = new CodeMsg(-1,"库存不足");
    public static CodeMsg INTEGRAL_INSUFFICIENT = new CodeMsg(-2,"您的积分不足");

    public static CodeMsg USER_STATION_ERROR = new CodeMsg(-4,"该用户非油站用户或用户与传入油站不是同一油站");


    public static CodeMsg INTEGRAL_ERROR = new CodeMsg(-3,"您的积分不足");

    public static CodeMsg NO_USER_HAVE_GUN = new CodeMsg(-4,"该登录账号没有绑定油站现有油枪");

    public static CodeMsg NO_STATION_ROLE = new CodeMsg(-4,"请使用油站用户登录");

    public static CodeMsg USER_DEVICE_GUN_NO_RELATED = new CodeMsg(-4,"用户有枪和设备油枪不关联");
    public static CodeMsg MORE_PERSONNAL = new CodeMsg(-6,"该油站或油枪未有绑定多个加油员");
    public static CodeMsg NO_ENABLE_COUPON = new CodeMsg(-5,"该油站暂未开启积分功能");

    public static CodeMsg PAY_FAIL = new CodeMsg(20501,"支付失败");


    //优惠券业务返回code
    public static CodeMsg COUPON_INFO_ERROR = new CodeMsg(-1,"");
    public static CodeMsg COUPON_LOSE_EFFECTIVE = new CodeMsg(-2,"优惠券已无效");
    public static CodeMsg NO_COUPON = new CodeMsg(-3,"该活动下已无可领取优惠券");
    public static CodeMsg COUPON_GIVE_COUNT_MAX = new CodeMsg(-6,"您当前该优惠券领取数量已达上限");
    public static CodeMsg ISSUE_CLOSE = new CodeMsg(-7,"该领取方式已关闭");
    public static CodeMsg NO_COUPON_ISSUE = new CodeMsg(-4,"该优惠券活动不存在");
    public static CodeMsg NOT_GIVE_COUPON_TIME = new CodeMsg(-8,"当前时间该领取方式暂未开启");
    public static CodeMsg MORE_COUPON_TIME_END = new CodeMsg(-2,"当前时间该领取方式已结束");
    public static CodeMsg COUPON_NOT_COUPONTHRESHOLDAMT = new CodeMsg(-10,"当前金额未达到优惠券使用门槛");
    public static CodeMsg COUPON_NOT_CONTATINS_OILNAME = new CodeMsg(-9,"当前优惠券不适用此油品");
    public static CodeMsg COUPON_ISSUE_LEVEL = new CodeMsg(-11,"您的等级不满足领取等级");
    public static CodeMsg MORE_DRAW_TODAY = new CodeMsg(-12, "您当日参与领取次数已达上限");
    public static CodeMsg COUPON_NOT_ENOUGHT = new CodeMsg(-13,"该商品数量不足");
    public static CodeMsg COUPON_GIVE_LIMIT_MAX = new CodeMsg(-14,"您选择的优惠券数量超出可选数量");
    public static CodeMsg ONCE_DRAW_TODAY = new CodeMsg(-15,"该优惠券已经领取过了~");
    public static CodeMsg COUPON_ISSUE_SUPER_LEVEL = new CodeMsg(-16,"您不是超级会员暂时无法领取，可开通超级会员后领取");
    public static CodeMsg COUPON_NEW_USER = new CodeMsg(-17,"限标签用户可领取");
    public static CodeMsg COUPON_OLD_USER = new CodeMsg(-18,"限老用户可领取");
    public static CodeMsg COUPON_GIVE_LIMIT_MAX_NUM = new CodeMsg(-19,"您选择的优惠券数量超出剩余可选数量");
    public static CodeMsg MORE_DRAW_MONTH = new CodeMsg(-20, "您当月领取次数已达上限");
    public static CodeMsg NO_ISSUE = new CodeMsg(-21,"优惠券已过期或未生效");

    public static CodeMsg NO_ACTIVITY = new CodeMsg(-22,"该用户名下没有优惠券");


    //优惠券核销

    public static CodeMsg ERROR_VERIFICATION = new CodeMsg(-1,"当前兑换券不能在此核销点核销！");
    public static CodeMsg COUPON_VERIFICATION_USED = new CodeMsg(-3,"当前兑换券已核销！");
    public static CodeMsg NOT_COUPON_VERIFICATION = new CodeMsg(-5,"当前优惠券不是异业兑换券！");
    public static CodeMsg NOT_COUPON_VERIFICATION_USER = new CodeMsg(-4,"当前登陆账号不是核销人员！");
    public static CodeMsg COUPON_VERIFICATION_ERROR = new CodeMsg(-10,"优惠券核销失败信息：");
    public static CodeMsg ERROR_COUPON_DATE = new CodeMsg(-2,"当前兑换券已过期");

    public static CodeMsg NOT_A_CAR_WASH = new CodeMsg(-11,"没有洗车服务");

    public static CodeMsg NO_CAR_WASH_TICKET = new CodeMsg(-12,"无此洗车券");
    public static CodeMsg CAR_WASH_TICKET_EXPIRED = new CodeMsg(-13,"该优惠券已被核销");

    public static CodeMsg TIME_IS_NOT_UP = new CodeMsg(-13,"当前优惠券不在可用时间内");
    public static CodeMsg CAN_BE_HERE = new CodeMsg(-14,"该优惠券不能在此站点核销");
    public static CodeMsg THERE_IS_NO_SUCH_WRITE_OFF = new CodeMsg(-15,"无此核销券");
    public static CodeMsg NOT_CERTIFICATE = new CodeMsg(-16,"该券不是兑换券");
    public static CodeMsg THIS_COUPON_IS_INVALID = new CodeMsg(-17,"该优惠券已无效");
    public static CodeMsg SITE_AND_PERSONNEL_ARE_INCONSISTENT = new CodeMsg(-18,"该兑换券站点与核销人员不一致");


    //POS班结
    public static CodeMsg NO_CLASS_NO_INFO = new CodeMsg(-1,"无此班结号班结记录");

    //
    public static CodeMsg NOT_PAYWAY = new CodeMsg(-2,"当前油站暂无此支付方式");
    public static CodeMsg ERROR_DEVICE_USER = new CodeMsg(-5, "当前登录账号非该油站POS设备账号");

    //判断版本
    public static CodeMsg ERROR_VERSION_INFO = new CodeMsg(-9, "请更新APP版本");

    public static CodeMsg ADD_PAY_ORDER = new CodeMsg(-11, "创建订单失败");
    //******激活微信卡券业务码开始*****************************************************************************************************************//

    public static CodeMsg NO_CARD_ID_ENTERPRISE = new CodeMsg(-1, "该卡券ID没有对应的企业");
    public static CodeMsg ACTIVATE_CARD_ERROR = new CodeMsg(-2, "激活卡失败");
    public static CodeMsg ACTIVATE_TICKET_ERROR = new CodeMsg(-3, "使用activate_ticket获取用户开卡时提交失败");
    public static CodeMsg COMMON_FIELD_LIST_ERROR = new CodeMsg(-4, "使用activate_ticket获取用户开卡时common_field_list为空");
    public static CodeMsg USER_FORM_INFO_FLAG_MOBILE_ERROR = new CodeMsg(-5, "使用activate_ticket获取用户开卡时没有user_form_info_flag_mobile");
    public static CodeMsg ENCRYPT_CODE_ERROR = new CodeMsg(-6, "解密encrypt_code获取code失败");
    public static CodeMsg CARD_INFO_TO_ACTIVATE_ERROR = new CodeMsg(-7, "获取激活卡券时所用到卡信息失败");
    public static CodeMsg MEMBERCARD_USER_INFO_ERROR = new CodeMsg(-8, "使用code和cardId拉取会员卡信息信息失败");
    public static CodeMsg MEMBERCARD_INFO_NOT_EXIST = new CodeMsg(-9, "拉取会员卡信息中没有info字段");

    public static  CodeMsg WX_REQUEST_FAIL = new CodeMsg(-13, "微信请求结果信息");

    public static CodeMsg THIRD_PART_AUTHORIZE_FAIL = new CodeMsg(-14,"第三方授权失败");

    //*******激活微信卡券业务码结束****************************************************************************************************************//

    //******随行付支付业务码开始*****************************************************************************************************************//
    
//    public static CodeMsg TRADE_REVERSE_PAY_SUCCESS = new CodeMsg(0, "随行付-支付成功");
    
//    public static CodeMsg TRADE_REVERSE_PAY_FAIL = new CodeMsg(50001, "随行付-支付失败");
    
    /**
     * 随行付-支付中
     */
    public static CodeMsg TRADE_REVERSE_PAY_WAIT_MINUTE = new CodeMsg(50002, "随行付-支付中");
    
    //******随行付支付业务码开始*****************************************************************************************************************//


    public CodeMsg(int retCode, String message) {
        this.retCode = retCode;
        this.message = message;
    }
    public int getRetCode() {
        return retCode;
    }
    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }
}
